package com.smallyang.controller;

import com.smallyang.domain.ResponseResult;
import com.smallyang.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨森
 * @description:
 * @date 2023年05月13日 15:38
 */
@RestController
@RequestMapping("/category")
public class CategoryController  {
    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList() {
        return categoryService.getCategoryList();
    }
}
